.class public abstract Les/vc0;
.super Ljava/lang/Object;
.source "DcerpcHandle.java"

# interfaces
.implements Ljcifs/dcerpc/DcerpcConstants;


# static fields
.field private static e:I = 0x1


# instance fields
.field protected a:Les/uc0;

.field protected b:I

.field protected c:I

.field protected d:I


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/16 v0, 0x10b8

    .line 2
    iput v0, p0, Les/vc0;->b:I

    .line 3
    iput v0, p0, Les/vc0;->c:I

    const/4 v0, 0x0

    .line 4
    iput v0, p0, Les/vc0;->d:I

    return-void
.end method


# virtual methods
.method public declared-synchronized a()V
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljcifs/dcerpc/DcerpcException;,
            Ljava/io/IOException;
        }
    .end annotation

    monitor-enter p0

    const/4 v0, 0x1

    const/4 v1, 0x0

    .line 1
    :try_start_0
    iput v0, p0, Les/vc0;->d:I

    .line 2
    new-instance v0, Les/tc0;

    iget-object v2, p0, Les/vc0;->a:Les/uc0;

    invoke-direct {v0, v2, p0}, Les/tc0;-><init>(Les/uc0;Les/vc0;)V

    .line 3
    iget v2, p0, Les/vc0;->b:I

    new-array v2, v2, [B

    .line 4
    new-instance v3, Ljcifs/dcerpc/ndr/NdrBuffer;

    invoke-direct {v3, v2, v1}, Ljcifs/dcerpc/ndr/NdrBuffer;-><init>([BI)V

    const/4 v4, 0x3

    .line 5
    iput v4, v0, Les/wc0;->b:I

    .line 6
    sget v4, Les/vc0;->e:I

    add-int/lit8 v5, v4, 0x1

    sput v5, Les/vc0;->e:I

    iput v4, v0, Les/wc0;->d:I

    .line 7
    invoke-virtual {v0, v3}, Les/wc0;->encode(Ljcifs/dcerpc/ndr/NdrBuffer;)V

    .line 8
    invoke-virtual {v3}, Ljcifs/dcerpc/ndr/NdrBuffer;->getLength()I

    move-result v4

    iput v4, v0, Les/wc0;->e:I

    .line 9
    invoke-virtual {v3}, Ljcifs/dcerpc/ndr/NdrBuffer;->getLength()I

    move-result v3

    invoke-virtual {p0, v2, v1, v3}, Les/vc0;->a([BII)V

    const/4 v2, 0x0

    .line 10
    invoke-virtual {p0, v2}, Les/vc0;->b([B)[B

    move-result-object v2

    .line 11
    new-instance v3, Ljcifs/dcerpc/ndr/NdrBuffer;

    invoke-direct {v3, v2, v1}, Ljcifs/dcerpc/ndr/NdrBuffer;-><init>([BI)V

    .line 12
    invoke-virtual {v0, v3}, Les/wc0;->decode(Ljcifs/dcerpc/ndr/NdrBuffer;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 13
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 14
    :try_start_1
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    .line 15
    iput v1, p0, Les/vc0;->d:I

    .line 16
    throw v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :goto_0
    monitor-exit p0

    throw v0
.end method

.method public a(Les/wc0;)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljcifs/dcerpc/DcerpcException;,
            Ljava/io/IOException;
        }
    .end annotation

    .line 17
    iget v0, p0, Les/vc0;->d:I

    if-nez v0, :cond_0

    .line 18
    invoke-virtual {p0}, Les/vc0;->a()V

    .line 19
    :cond_0
    iget v0, p0, Les/vc0;->b:I

    new-array v0, v0, [B

    .line 20
    new-instance v1, Ljcifs/dcerpc/ndr/NdrBuffer;

    const/4 v2, 0x0

    invoke-direct {v1, v0, v2}, Ljcifs/dcerpc/ndr/NdrBuffer;-><init>([BI)V

    const/4 v3, 0x3

    .line 21
    iput v3, p1, Les/wc0;->b:I

    .line 22
    sget v3, Les/vc0;->e:I

    add-int/lit8 v4, v3, 0x1

    sput v4, Les/vc0;->e:I

    iput v3, p1, Les/wc0;->d:I

    .line 23
    invoke-virtual {p1, v1}, Les/wc0;->encode(Ljcifs/dcerpc/ndr/NdrBuffer;)V

    .line 24
    invoke-virtual {v1}, Ljcifs/dcerpc/ndr/NdrBuffer;->getLength()I

    move-result v3

    new-array v3, v3, [B

    .line 25
    invoke-virtual {v1}, Ljcifs/dcerpc/ndr/NdrBuffer;->getLength()I

    move-result v1

    invoke-static {v0, v2, v3, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 26
    invoke-virtual {p0, v3}, Les/vc0;->a([B)[B

    move-result-object v0

    .line 27
    new-instance v1, Ljcifs/dcerpc/ndr/NdrBuffer;

    invoke-direct {v1, v0, v2}, Ljcifs/dcerpc/ndr/NdrBuffer;-><init>([BI)V

    .line 28
    invoke-virtual {p1, v1}, Les/wc0;->decode(Ljcifs/dcerpc/ndr/NdrBuffer;)V

    .line 29
    invoke-virtual {p1}, Les/wc0;->getResult()Ljcifs/dcerpc/DcerpcException;

    move-result-object p1

    if-nez p1, :cond_1

    return-void

    .line 30
    :cond_1
    throw p1
.end method

.method protected abstract a([BII)V
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation
.end method

.method protected abstract a([B)[B
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation
.end method

.method protected abstract b([B)[B
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Les/vc0;->a:Les/uc0;

    invoke-virtual {v0}, Les/uc0;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
